package com.hugh.lagou.code.eunm;

/**
 * @Author: Hugh
 * @Date: 2020/7/19
 */
public enum CheckCodeResult {

    SUCCESS(0, "验证通过"),
    ERROR(1, "错误"),
    TIMEOUT(2,"超时");

    private int code;
    private String msg;

    CheckCodeResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String msg(){
        return "code is " + this.code + ", " + this.msg;
    }

    public Integer getValue(){
        return this.code;
    }
}
